From: Kunal Mehta Date: Fri, 12 Dec 2014 19:04:33 +0000 (-0800) Subject: Add more context to globaltitlefail logs X-Git-Tag: 1.31.0-rc.0~12988 X-Git-Url: http://git.cyclocoop.org/%7D%7Cconcat%7B?a=commitdiff_plain;h=18d952dbcb6c79cce74686d0ac74dc53879a3636;p=lhc%2Fweb%2Fwiklou.git Add more context to globaltitlefail logs Currently stuff like: MessageCache::parse called by Message::toString/Message::parseText/MessageCache::parse with no title set. is showing up in the logs, and is totally useless. Change-Id: I0ac3ca906c5a67e19974e3434d0e929e6b27fbb2 --- diff --git a/includes/context/RequestContext.php b/includes/context/RequestContext.php index 2a610a3a73..fe17fdef95 100644 --- a/includes/context/RequestContext.php +++ b/includes/context/RequestContext.php @@ -140,7 +140,7 @@ class RequestContext implements IContextSource { if ( $this->title === null ) { global $wgTitle; # fallback to $wg till we can improve this $this->title = $wgTitle; - wfDebugLog( 'GlobalTitleFail', __METHOD__ . ' called by ' . wfGetAllCallers() . ' with no title set.' ); + wfDebugLog( 'GlobalTitleFail', __METHOD__ . ' called by ' . wfGetAllCallers( 5 ) . ' with no title set.' ); } return $this->title;